package memleak.test.com.testlist;

import com.gzgd.log.LogUtils;

/**
 * Created by hendy on 2017/7/13.
 */

public class TransformUtils {
    private static final String TAG = "TransformUtils";

    public static int parseInt(String str, int defaultValue) {
        int value = defaultValue;
        try {
            value = Integer.parseInt(str);
        } catch (NumberFormatException e) {
            LogUtils.d(TAG, e.getLocalizedMessage());
        }
        return value;
    }
}
